package com.example;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//@Slf4j
@SpringBootApplication
@MapperScan("com.example.mapper")//用于扫描mapper接口所在的包
@ServletComponentScan//用于注册诸如filter拦截器等web组件
@EnableTransactionManagement
@EnableCaching//开启springCache注解方式缓存的功能
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
    }
}
